package com.ztjava.remind.task;

import com.alibaba.fastjson.JSONObject;
import com.ztjava.plugin.weixin.WeixinKit;

public class MpTask implements Runnable{
	
	private String openid;
	private String template_id;
	private String url;
	private JSONObject data;
	
	public MpTask(String openid,String template_id,String url,JSONObject data){
		this.openid = openid;
		this.template_id = template_id;
		this.url = url;
		this.data = data;
	}
	
	@Override
	public void run() {
		try {
			WeixinKit.use().message_template_send(openid, template_id, url, data);
		}catch (Exception e){
			e.printStackTrace();
		}
	}

}
